<style lang="scss" rel="stylesheet/scss">
    .j-news-list{
        .news-item {
            display: flex;
            padding: 0.5rem 1rem;
            color: #333;
            border-bottom: 1px solid #f5f5f5;
            &:last-child(1) {
                border-bottom: none;
            }
            .left {
                flex:0 0 3.5rem;
                img {
                    width:3.5rem;
                    height:3.5rem;
                }
            }
            .right {
                flex: 1;
                padding: 0 0 0 0.8rem;
                p {
                    line-height: 1.2rem;
                    text-overflow: -o-ellipsis-lastline;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    height: 2.3rem;
                }
                .tag-list {
                    margin-top: 0.3rem;
                    span {
                        padding: 0 0.3rem;
                        height: 1rem; 
                        line-height: 1.3rem;
                        border-radius: 0.2rem;
                        margin-right: 0.3rem;
                        &.one {
                            border: 1px solid #e64340;
                            color: #e64340;
                        }
                        &.two {
                            border: 1px solid #0093f9;
                            color: #0093f9;
                        }
                        &.three {
                            border: 1px solid #09bb07;
                            color: #09bb07;
                        }
                        &.time {
                            float: right;
                            color: #666;
                            margin-right: 0;
                        }
                        
                    }
                }
            }
        }
    }
</style>
<template>
    <div class="j-news-list">
        <div v-for="item in list" v-bind:key="item" class="news-item">
            <div class="left">
                <img src="../../assets/user_img.jpg" alt="">
            </div>
            <div class="right">
                <p class="font-big-mormal">充值20送20活动火热进行中，更有世界杯等多个精彩竞猜等你来玩，详情微632881158</p>
                <div class="font-small tag-list">
                    <span class="one">置顶</span>
                    <span class="two">全国推广</span>
                    <span class="time">09/06</span>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        data () {
            return {
                list:[1,2]
            }
        },
        props: {
            userinfo:{
                type:Object
            }
        },
        created () {

        },
        methods: {
            
        }
    }
</script>

